<?php
	/**
	 * The ContentKeyType class defined here contains
	 * code for the ContentKeyType enumerated type.  It represents
	 * the enumerated values found in the "content_key_type" table
	 * in the database.
	 *
	 * To use, you should use the ContentKeyType subclass which
	 * extends this ContentKeyTypeGen class.
	 *
	 * Because subsequent re-code generations will overwrite any changes to this
	 * file, you should leave this file unaltered to prevent yourself from losing
	 * any information or code changes.  All customizations should be done by
	 * overriding existing or implementing new methods, properties and variables
	 * in the ContentKeyType class.
	 *
	 * @package flx_qcubed
	 * @subpackage GeneratedDataObjects
	 */
	abstract class ContentKeyTypeGen extends QBaseClass {
		const SingleText = 1;
		const MultiText = 2;
		const RichText = 3;

		const MaxId = 3;

		public static $NameArray = array(
			1 => 'SingleText',
			2 => 'MultiText',
			3 => 'RichText');

		public static $TokenArray = array(
			1 => 'SingleText',
			2 => 'MultiText',
			3 => 'RichText');

		public static function ToString($intContentKeyTypeId) {
			switch ($intContentKeyTypeId) {
				case 1: return 'SingleText';
				case 2: return 'MultiText';
				case 3: return 'RichText';
				default:
					throw new QCallerException(sprintf('Invalid intContentKeyTypeId: %s', $intContentKeyTypeId));
			}
		}

		public static function ToToken($intContentKeyTypeId) {
			switch ($intContentKeyTypeId) {
				case 1: return 'SingleText';
				case 2: return 'MultiText';
				case 3: return 'RichText';
				default:
					throw new QCallerException(sprintf('Invalid intContentKeyTypeId: %s', $intContentKeyTypeId));
			}
		}

	}
?>